

const FORMATTER = {
  level: {
    1: '高级讲师',
    2: '首席讲师'
  }
}

function formatter(row, column, value) {
  let fmt = FORMATTER[column.property]
  value = value ?? row[prop]
  if(fmt) return fmt[value]
  return value
}

export default {
  normal: (row, prop, value) => value,
  teacherLevel: (row, column, value) => formatter(row, column, value)
}